"""
URL configuration for chat.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path
from chat import views

app_name = "chat"
urlpatterns = [
    # 创建新对话
    path(r'create_dialog/', views.new_chat, name='create_dialog'),
    # 智能问答初始化
    path(r'chat_init/', views.load_chat_model, name='chat_init'),
    # 反复对话
    path(r'repeat_chat/', views.QuestionsAnswers.as_view(), name='repeat_chat'),
]
